import './style.css'
import { menu } from '../../router/page'
import { NavLink } from 'react-router-dom'

const Menu =() => {
    return <div className="menu-box">
        {
            menu.map((item, idx) => {
                return <NavLink key={idx} to={item.path}>{item.name}</NavLink>
            })
        }
    </div>
}

export default Menu